// 引入依赖的配置文件模块
require(["config"], function(){
	// 引入依赖模块
	require(["jquery", "header", "carousel"], function($){
		function Index() {
			this.loadCarousel();
		}

		$.extend(Index.prototype, {
//			// 加载轮播图
		loadCarousel: function() {
			$("#Bbox").carousel({
					imgs : [
						{href:"#", src:"/img/1.jpg"},
						{href:"#", src:"/img/2.jpg"},
						{href:"#", src:"/img/3.jpg"},
						{href:"#", src:"/img/4.jpg"}
						
					],
					width: 1100,
					height: 600,
				    duration: 3000
				});
			}
		});

		new Index();
	});
});